home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 13288 / 13288.xpi / content / overlay.xul < prev    next >
Extensible Markup Language  |  2010-01-22  |  6KB  |  126 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="chrome://supertabmode/skin/stm.css" type="text/css"?>
  3. <?xml-stylesheet href="chrome://supertabmode/skin/button.css" type="text/css"?>
  4. <!DOCTYPE overlay SYSTEM "chrome://supertabmode/locale/stm.dtd">
  5. <overlay id="stm.overlay"
  6.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  7.   <script type="application/x-javascript" src="overlay.js"/>
  8.   <script type="application/x-javascript" src="common.js"/>
  9.  
  10.   <stringbundleset>
  11.     <stringbundle id="stm.stringmanager" src="chrome://supertabmode/locale/stm.properties" />
  12.   </stringbundleset>
  13.  
  14.   <broadcasterset>
  15.     <broadcaster id="b.historybutton" type="menu-button" oncommand="undoCloseTab();"/>
  16.   </broadcasterset>
  17.  
  18.   <commandset id="mainCommandSet">
  19.     <command id="cmd_managelist"                 oncommand="stmC.openListManager();"/>
  20.   </commandset>
  21.  
  22. <!-- Acesskey -->
  23.   <window id="main-window">
  24.     <keyset id="stm.Keyset">
  25.       <key id="k.pageLock" oncommand="stmM.togglePL();" key="Z" modifiers="alt"/>
  26.       <key id="k.block" oncommand="stmM.toggleBlock();" key="X" modifiers="alt"/>
  27.       <key id="k.hideFF" oncommand="stmM.hideFirefox();" key="Q" modifiers=""/>
  28.       <key id="k.closeRTabs" oncommand="stmM.closeByKey=true; stmM.closeRightTabs();" keycode="VK_RIGHT" modifiers="alt"/>
  29.       <key id="k.closeLTabs" oncommand="stmM.closeByKey=true; stmM.closeLeftTabs();" keycode="VK_LEFT" modifiers="alt"/>
  30.     </keyset>
  31.   </window>
  32.  
  33. <!-- Main Menu item -->
  34.   <menubar id="main-menubar">
  35.     <menu id="tabreopen-menu" label="&stm.tabreopen-menu.label;" accesskey="&stm.tabreopen-menu.accesskey;" insertafter="tools-menu,helpMenu">
  36.       <menupopup id="tabreopen-popup" onpopupshowing="stmM.showHistoryMenuItems(this);"/>
  37.     </menu>
  38.   </menubar>
  39.     
  40. <!-- Toolmenu item -->
  41.   <menupopup id="menu_ToolsPopup">
  42.     <menuitem id="stm.menuitem"
  43.               label="&stm.label;"
  44.               insertafter="devToolsSeparator"
  45.               oncommand="stmM.openPrefDialog();"/>
  46.   </menupopup>
  47.  
  48. <!-- right-click context menu -->
  49.   <popup id="contentAreaContextMenu">
  50.     <menuitem id="stm.context-loadselect"
  51.               insertbefore="context-searchselect"
  52.               hidden="true"
  53.               oncommand="stmM.loadSelectInTab();"/>
  54.   </popup>
  55.  
  56. <!-- Toolbar button -->
  57.   <toolbarpalette id="BrowserToolbarPalette">
  58.     <toolbarbutton id="stm-togglebutton"
  59.                    oncommand="stmM.onToolbarButtonClick();"
  60.                    label="&stm.toolbarbutton.label;"
  61.                    tooltiptext="&stm.toolbarbutton.tooltiptext;"
  62.                    class="toolbarbutton-1"/>
  63.  
  64.     <toolbarbutton id="stm-historybutton"
  65.                    label="&stm.historybutton.label;"
  66.                    tooltiptext="&stm.historybutton.tooltiptext;"
  67.                    class="toolbarbutton-1"
  68.                    observes="b.historybutton">
  69.       <menupopup id="historybutton-popup" onpopupshowing="stmM.showHistoryMenuItems(this);"/>
  70.     </toolbarbutton>
  71.   </toolbarpalette>
  72.  
  73. <!-- statusbar -->
  74.   <statusbar id="status-bar">
  75.     <statusbarpanel id="stm.statuspanel"
  76.                     class="statusbarpanel-iconic"
  77.                     onclick="stmM.onStatusbarIconClick(event);"
  78.                     tooltip="stm.tooltip"
  79.                                         hidden="true"
  80.                     image="chrome://supertabmode/skin/stmbar16.png"/>
  81.   </statusbar>
  82.  
  83.   <popupset id="mainPopupSet">
  84. <!-- statusbar popup menu -->
  85.     <menupopup id="stm.popup" position="before_end" >
  86.  
  87.       <menuitem id="stm.blockOption" label="&block.blockOption;" type="checkbox" oncommand="stmM.toggleBlockType(9);"/>
  88.       <menuseparator id="stm.smSepa2"/>
  89.       <menuitem id="stm.blockScope0" label="&block.blockScope.0;" type="checkbox" oncommand="stmM.toggleBlockType(0);"/>
  90.       <menuitem id="stm.blockScope1" label="&block.blockScope.1;" type="checkbox" oncommand="stmM.toggleBlockType(1);"/>
  91.       <menuitem id="stm.blockScope2" label="&block.blockScope.2;" type="checkbox" oncommand="stmM.toggleBlockType(2);"/>
  92.       <menuseparator id="stm.smSepa1"/>
  93.       <menuitem id="stm.managelist" label="&stm.managelist.label;" command="cmd_managelist"/>
  94.       <menuitem id="stm.keeppagelocked" label="&stm.keeppagelocked.label;" oncommand="stmM.addIntoList();"/>
  95.       <menuseparator id="stm.smSepa0"/>
  96.       <menuitem id="stm.exitpopupmenu" label="&stm.exitpopupmenu.label;" oncommand="stmM.onExitStatusbarIcon();"/>
  97.     </menupopup>
  98.  
  99. <!-- tab popup menu -->
  100.     <menupopup>
  101.       <menuitem id="stm.tabBlockScope0" label="&block.blockScope.0;" type="checkbox" oncommand="stmM.toggleBlockType(0);"/>
  102.       <menuitem id="stm.tabBlockScope1" label="&block.blockScope.1;" type="checkbox" oncommand="stmM.toggleBlockType(1);"/>
  103.       <menuitem id="stm.tabBlockScope2" label="&block.blockScope.2;" type="checkbox" oncommand="stmM.toggleBlockType(2);"/>
  104.       <menuseparator id="stm.tmSepa2"/>
  105.       <menuitem id="stm.tabBlockStopOnTabSwitch" label="&block.blockOption;" type="checkbox" oncommand="stmM.toggleBlockType(9);"/>
  106.       <menuseparator id="stm.tmSepa1"/>
  107.       <menuitem id="stm.tabpagelock0" label="&stm.tabpagelock.label;" oncommand="stmM.onTabMenuPageLockClick();" key="k.pageLock"/>
  108.       <menuitem id="stm.tabpagelock1" label="&stm.keeppagelocked.label;" oncommand="stmM.onTabMenuAddIntoListClick();"/>
  109.       <menuitem id="stm.tabpagelock2" label="&stm.managelist.label;" command="cmd_managelist"/>
  110.       <menuseparator id="stm.tmSepa0"/>
  111.       <menuitem id="stm.tCloseRTabs" label="&stm.closeRTabs.label;" oncommand="stmM.closeRightTabs();" key="k.closeRTabs"/>
  112.       <menuitem id="stm.tCloseLTabs" label="&stm.closeLTabs.label;" oncommand="stmM.closeLeftTabs();" key="k.closeLTabs"/>
  113.     </menupopup>
  114.  
  115. <!-- tooltips -->
  116.     <tooltip id="stm.tooltip" position="before_start" noautohide="true">
  117.       <description value="&tooltip.popmenu.leftclick1;"/>
  118.       <description value="&tooltip.popmenu.leftclick2;"/>
  119.       <description value="&tooltip.popmenu.leftclick3;"/>
  120.     </tooltip>
  121.   </popupset>
  122.  
  123. </overlay>
  124.  
  125.  
  126.